import * as API from './index'

//增加订单
export const addOrders = (params)=>{
    return API.POST('/api/v1/orders',params)
}

//获取订单列表
export const getOrders = (params)=>{
    return API.GET('/api/v1/orders',params)
}

//获取订单详情
export const getOrderDetail = (params)=>{
    return API.GET('/api/v1/orders/'+params)
}

//删除订单详情
export const getOrderDelete = (params)=>{
    return API.DELETE('/api/v1/orders/'+params)
}